package com.good.msgsys.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 日志实体类
 *
 * @author junlong
 * @date 2021/1/4 19:00
 */
@Entity
@Table(name = "log")
@ApiModel("日志实体类Log")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Log implements Serializable {
    @Id
    @ApiModelProperty("日志id")
    private String id;
    @ApiModelProperty("访问时间")
    private Date visitTime;
    @ApiModelProperty("操作者用户名")
    private String userName;
    @ApiModelProperty("访问ip")
    private String ip;
    @ApiModelProperty("访问资源url")
    private String url;
    @ApiModelProperty("执行时长")
    private Long executionTime;
    @ApiModelProperty("访问方法")
    private String method;
}
